local M = {}

function M.init()
    M.root = CS.UnityEngine.GameObject('pokerlib').transform
end

function M.release()
    if not M.root then
        return
    end
    CS.UnityEngine.GameObject.Destroy(M.root.gameObject)
    M.root = nil
end

return setmetatable(M, {__index = function(t, key)
    local result = require ("club.threecard.pokerlib.core."..key)
    if result then
        t[key] = result
    end

    return result
end})